/**
  ******************************************************************************
  * @file    at24c02.h
  * @brief   This file contains all the function prototypes for
  *          the at24c02.c file
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2023 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef AT24C02_H_
#define AT24C02_H_

#ifdef __cplusplus
extern "C" {
#endif

/* Includes */
#include "DSP2803x_Device.h"     				// DSP2803x Headerfile Include File
#include "DSP2803x_GlobalPrototypes.h"         // Prototypes for global functions within the
#include "DSP2803x_I2c_defines.h"


// Status Flags
#define I2C_AL_BIT          0x0001
#define I2C_NACK_BIT        0x0002
#define I2C_ARDY_BIT        0x0004
#define I2C_RRDY_BIT        0x0008
#define I2C_SCD_BIT         0x0020


Uint16 AT24C02_Read1Byte(Uint16 reg);
Uint16 AT24C02_Write1Byte(Uint16 reg,Uint16 data);

#endif /* AT24C02_H_ */
